package cn.sh.system.mapper;

import cn.sh.system.domain.Role;
import cn.sh.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sh
 * @since 2022-08-14
 */
public interface RoleMapper extends BaseMapper<Role> {
    void deleteRoleMenuByRoleId(Long id);

    void deleteRolePermissionByRoleId(Long id);

    void addRoleMenu(@Param("id") Long id, @Param("menus") List<Long> menus);

    void addRolePermission(@Param("id") Long id, @Param("permissions") List<Long> permissions);

}
